#!/usr/bin/env bash
#MISE description="Show output on failure for documentation generation"
set -euo pipefail

output=$("$@" 2>&1)
status=$?
if ((status)); then
	echo "$output" >&2
fi

exit $status
